package com.gkt.ec.ws.activity.model.domain;

import java.sql.Timestamp;

/**
 * @author Huzl
 * @version 1.0.0
 */
public class CompanyEntity {
    private Long id;
    private String companyName;
    private Integer companyType;
    private String organizationId;
    private String contactPerson1Position;
    private String contactPerson1Name;
    private String contactPerson1Phone;
    private String address;
    private Timestamp updateTime;
    private Timestamp createTime;
    private String createUser;
    private String updateUser;
    private String contactPerson2Position;
    private String contactPerson2Name;
    private String contactPerson2Phone;
    private Integer isDeleted = 0;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getCompanyType() {
        return companyType;
    }

    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getContactPerson1Position() {
        return contactPerson1Position;
    }

    public void setContactPerson1Position(String contactPerson1Position) {
        this.contactPerson1Position = contactPerson1Position;
    }

    public String getContactPerson1Name() {
        return contactPerson1Name;
    }

    public void setContactPerson1Name(String contactPerson1Name) {
        this.contactPerson1Name = contactPerson1Name;
    }

    public String getContactPerson1Phone() {
        return contactPerson1Phone;
    }

    public void setContactPerson1Phone(String contactPerson1Phone) {
        this.contactPerson1Phone = contactPerson1Phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getContactPerson2Position() {
        return contactPerson2Position;
    }

    public void setContactPerson2Position(String contactPerson2Position) {
        this.contactPerson2Position = contactPerson2Position;
    }

    public String getContactPerson2Name() {
        return contactPerson2Name;
    }

    public void setContactPerson2Name(String contactPerson2Name) {
        this.contactPerson2Name = contactPerson2Name;
    }

    public String getContactPerson2Phone() {
        return contactPerson2Phone;
    }

    public void setContactPerson2Phone(String contactPerson2Phone) {
        this.contactPerson2Phone = contactPerson2Phone;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CompanyEntity that = (CompanyEntity) o;

        if (id != that.id) return false;
        if (companyName != null ? !companyName.equals(that.companyName) : that.companyName != null) return false;
        if (companyType != null ? !companyType.equals(that.companyType) : that.companyType != null) return false;
        if (organizationId != null ? !organizationId.equals(that.organizationId) : that.organizationId != null)
            return false;
        if (contactPerson1Position != null ? !contactPerson1Position.equals(that.contactPerson1Position) : that.contactPerson1Position != null)
            return false;
        if (contactPerson1Name != null ? !contactPerson1Name.equals(that.contactPerson1Name) : that.contactPerson1Name != null)
            return false;
        if (contactPerson1Phone != null ? !contactPerson1Phone.equals(that.contactPerson1Phone) : that.contactPerson1Phone != null)
            return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (createUser != null ? !createUser.equals(that.createUser) : that.createUser != null) return false;
        if (updateUser != null ? !updateUser.equals(that.updateUser) : that.updateUser != null) return false;
        if (contactPerson2Position != null ? !contactPerson2Position.equals(that.contactPerson2Position) : that.contactPerson2Position != null)
            return false;
        if (contactPerson2Name != null ? !contactPerson2Name.equals(that.contactPerson2Name) : that.contactPerson2Name != null)
            return false;
        if (contactPerson2Phone != null ? !contactPerson2Phone.equals(that.contactPerson2Phone) : that.contactPerson2Phone != null)
            return false;
        if (isDeleted != null ? !isDeleted.equals(that.isDeleted) : that.isDeleted != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (companyName != null ? companyName.hashCode() : 0);
        result = 31 * result + (companyType != null ? companyType.hashCode() : 0);
        result = 31 * result + (organizationId != null ? organizationId.hashCode() : 0);
        result = 31 * result + (contactPerson1Position != null ? contactPerson1Position.hashCode() : 0);
        result = 31 * result + (contactPerson1Name != null ? contactPerson1Name.hashCode() : 0);
        result = 31 * result + (contactPerson1Phone != null ? contactPerson1Phone.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (createUser != null ? createUser.hashCode() : 0);
        result = 31 * result + (updateUser != null ? updateUser.hashCode() : 0);
        result = 31 * result + (contactPerson2Position != null ? contactPerson2Position.hashCode() : 0);
        result = 31 * result + (contactPerson2Name != null ? contactPerson2Name.hashCode() : 0);
        result = 31 * result + (contactPerson2Phone != null ? contactPerson2Phone.hashCode() : 0);
        result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0);
        return result;
    }
}
